﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DrawTools
{
    public partial class DrawAriPropertiesForm : Form
    {
        public DrawAir DProperties { get; set; }

        public DrawAriPropertiesForm()
        {
            InitializeComponent();
        }

        private void DrawAriPropertiesForm_Load(object sender, EventArgs e)
        {
            driviceID.Text = DProperties.driviceID.ToString();
            iaText.Text = DProperties.Ia.ToString();
            vaText.Text = DProperties.Va.ToString();
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            DProperties.driviceID = Convert.ToInt32(driviceID.Text);
            DProperties.Ia = Convert.ToInt32(iaText.Text);
            DProperties.Va = Convert.ToInt32(vaText.Text);
            this.DialogResult = DialogResult.OK;
        }
    }
}
